]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Always start in FLOATING state
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 10:44:50 +0000 (12:44 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:41:54 +0000 (13:41 +0200)
It doesn't matter which animation we use to enter the overview,
we always want to start and end with the floating layout.

The simplest way to achieve that is by creating the state adjustment
with the correct value in the first place.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353

js/ui/workspace.js

index e1b9b003eecb89585dc458309fac410fc7f96cac..12c4a39bef01c9b32ece7775402dd6b01b9e673a 100644 (file)
@@ -411,7 +411,7 @@ var WorkspaceLayout = GObject.registerClass({
         this._layout = null;
 
         this._stateAdjustment = new St.Adjustment({
-            value: 1,
+            value: 0,
             lower: 0,
             upper: 1,
         });
@@ -1135,7 +1135,6 @@ class Workspace extends St.Widget {
             this.metaWorkspace === null || this.metaWorkspace.active;
 
         const adj = this.layout_manager.stateAdjustment;
-        adj.value = 0;
         adj.ease(1, {
             duration: animate ? Overview.ANIMATION_TIME : 0,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,